

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Yozeev.BusinessLogic;

namespace Yozeev.EntityMapper.ScenicSpots
{
    public class ScenicSpotCfg : IEntityTypeConfiguration<ScenicSpot>
    {
        public void Configure(EntityTypeBuilder<ScenicSpot> builder)
        {

            builder.ToTable("ScenicSpots", YoYoAbpefCoreConsts.SchemaNames.Common);

            
			builder.Property(a => a.ScenicSpotName).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.ParentId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			//builder.Property(a => a.Parent).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.ScenicSpotInfo).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);


        }
    }
}


